<script>
	var timer = null
	export default {
		onLaunch: function() {
			console.log('App Launch')

		},
		onShow: function() {
			console.log('App Show')
			this.$http.post("/data/api.auth.User/info", {}).then(res => {
				if (res.data && res.data.id) {
					this.$store.commit('setUser', res.data)
					if (res.data.mobile) {
						this.$store.commit('setIsLogin', true)
					} else {
						this.$store.commit('setIsLogin', false)
					}
				} else {
					this.$store.commit('setIsLogin', false)
				}

			}).catch(() => {
				this.$store.commit('setIsLogin', false)
			})

		},
		onHide: function() {
			console.log('App Hide')

		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "uview-ui/index.scss";

	.flex-c {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.flex-s {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	// @import '/static/css/iconfont.css';
	.u-navbar__content__title {
		// color: #ffffff !important;

	}

	.uicon-arrow-left {
		// color: #ffffff !important;
	}

	.main_bg {
		min-height: 100vh;
		background-size: 100% 100%;
		// background: linear-gradient(359deg, #21D5C1 0%, #188B7E 80%, #188B7E 100%);
	}

	.base_btns {
		width: 688rpx;
		height: 80rpx;
		background: rgba(255, 255, 255, 1);
		opacity: 1;
		border-radius: 120rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 32rpx;
		font-weight: 400;
		line-height: 46rpx;
		color: #188B7E;
		opacity: 1;
		margin: 80rpx auto 0;

		&.btns_f {
			background-color: #188B7E;
			color: #FFFFFF;
		}
	}

	.u-tabbar__content {
		background-color: rgba(255, 255, 255, 1) !important;
		border-top: none !important;
	}
</style>